#include<iostream>
#include<map>
using namespace std;
const int N = 1e5 + 10;
int flag[N];
int arr[N];
int n;
int main()
{
	cin >> n;
	map<long long, int>mp;
	for (int i = 0; i < n; i++) {
		cin >> arr[i];
		mp[arr[i]]++;
	}
	for (int i = 0; i < n; i++) {
		if (mp[arr[i]] == 1) {
			cout << arr[i] << " ";
		}
	}
	return 0;
}